<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #div1{
            border:1px solid red;
            width: 30px;
            padding-left: 10px;
            box-sizing: border-box;
        }
        #div1{
            height: 500px;
        }
    </style>
</head>
<body>
<div id="div1">1</div>
</body>
</html>